provider Crons POST /api/0/organizations/{organization_id_or_slug}/monitors/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/monitors/
Create a Monitor
Create a new monitor.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createAMonitor
POST/api/0/organizations/{organization_id_or_slug}/monitors/
Create a new monitor.

Parameters

required

The ID or slug of the organization the resource belongs to.

Input

required

The project slug to associate the monitor to.

required

Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name.

required

The configuration for the monitor.

Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.

Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. * `active` * `disabled`

The ID of the team or user that owns the monitor. (eg. user:51 or team:6)

Disable creation of monitor incidents

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.createAMonitor({
  "status": "active"
})